﻿@model IEnumerable<MC.RideEvent.Mvc.Models.ViewModel.WayViewModel>

@{
    ViewBag.Title = "Liste des trajets";
}

<h2>Liste des trajet pour l'evenement :  </h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.DriverId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EventId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VehiculeId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Contribution)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MeetingHour)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MeetingPlace)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NumberPlaces)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.City)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NamePlace)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateEvent)
        </th>
    </tr>
    
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DriverId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EventId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VehiculeId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Contribution)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MeetingHour)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MeetingPlace)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NumberPlaces)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NamePlace)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Event.DateBegin)
        </td>
    </tr>
}
</table>